<?php
if($_SESSION["userislogin"]!=="iwaslogined"){
echo "<script language=JavaScript>\r\n";
echo "location.href='/login.php'\r\n";
echo "</script>";
exit;
}
?>